from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `xm_model_page` RENAME COLUMN `con_id` TO `cate_id`;"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `xm_model_page` RENAME COLUMN `cate_id` TO `con_id`;"""
